package com.zhaiweijia.dao;

import java.util.List;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.zhaiweijia.entity.Dam;
import com.zhaiweijia.entity.DamType;

public interface DamDao {
	@Select("select * from senior1_week2_dam_type where name=#{tname}")
	DamType getTidByTname(@Param("tname")String tname);
	@Insert("insert into senior1_week2_dam values(null,#{name},#{address},#{rainArea},#{volumeTotal},#{typeId},#{length},#{high},#{volumeNow},#{volumeDischarge})")
	void add(Dam dam);
	//列表
	List<Dam> findAll();
	
	
	
}
